home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: fuw.edu.pl!cyfronet!student!iskra
- From: iskra@student.uci.agh.edu.pl (Kamil Iskra)
- Subject: Re: HUGE executable in g++
- Message-ID: <DKyHo0.IFL@cyf-kr.edu.pl>
- Sender: news@cyf-kr.edu.pl (News Administrator)
- Nntp-Posting-Host: student.uci.agh.edu.pl
- Organization: Academic Computer Centre, CYFRONET
- X-Newsreader: TIN [version 1.1 PL8]
- References: <mgwill1.821197358@mik.uky.edu>
- Date: Wed, 10 Jan 1996 08:16:48 GMT
-
- matthew williams (mgwill1@mik.uky.edu) wrote:
-
- > I have been having a problem with GNU G++, I have a 10k source file that
- > only includes the files iostream.h, iomanip.h, and stdio.h (i wrote it
- > first with fstream.h but rewrote the code to use stdio.h because i
- > thought fstream.h was making my executable large) and this 10k compiles
- > into a 1454344 byte executable! (in a.out form) and nothing seems to make
- > it into a reasonably sized executable, i compiled the program with this line:
-
- > g++ -O2 -noixemul foo.cc -o foo -lnix
-
- I think that you don't have to use -lnix when you already wrote -noixemul.
-
- > The file produced by that is 541k (which is better but not good) and
-
- Try to use -s options, which strips symbolic information.
-
- Post output produced by -v option, which gives kind of log of G++ activities.
-
- --
- / Kamil Iskra - AMIGA 1200, 68030 50MHz, HDD 850 MB, 10 MB RAM \
- | iskra@student.uci.agh.edu.pl kiskra@ernie.icslab.agh.edu.pl |
- | http://student.uci.agh.edu.pl/~iskra |
- \ PGP public key available via Finger or WWW /
-